<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
</head>

<body>


<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-article">产品分类</div>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
  <tr class="first">
    <td width="30" align="center" valign="middle">ID</td>
    <td width="30" align="center" valign="middle">排序</td>
    <td>名称</td>
    <td width="100" align="center" valign="middle">别名</td>
    <td width="100" align="center" valign="middle">上级分类</td>
    <td width="120" align="center" valign="middle">操作</td>
  </tr>
  <?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
    <td width="30" align="center" valign="middle"><?php echo ($list['id']); ?></td>
    <td width="30" align="center" valign="middle"><?php echo ($list['ord']); ?></td>
    <td><a class="link" href="<?php echo U('Home/Category/index',array('id'=>$list['url']));?>" title="点击访问" target="_blank"><?php echo ($list['name']); ?></a></td>
    <td width="100" align="center" valign="middle"><?php echo ($list['url']); ?></td>
    <td width="100" align="center" valign="middle"><?php if($list['pid'] == 0): ?>顶级分类<?php else: echo getCatName($list['pid']); endif; ?></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<?php echo U('catedit','id='.$list['id']);?>">修改</a> <a class="del" href="<?php echo U('catdelete','id='.$list['id']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>

</body>
</html>